package cn.edu.just.firstjavaapp.l12;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatDemo {//日期格式化
    public static void main(String[] args) {
        SimpleDateFormat sdf = new SimpleDateFormat("yy年M月d日,hh:mm:ss.S");
        Date now = new Date();
        String nowStr = sdf.format(now);
        System.out.println(nowStr);
    }
}
